package com.shijie.sjoj.model.pojo.entity;

import lombok.Builder;
import lombok.Data;

/**
 * token凭据类
 *
 * @author ZSJ
 */
@Data
@Builder
public class Token {

    /**
     * 鉴权框架
     */
    private String framework;

    /**
     * 签名（token名称）
     */
    private String sign;

    /**
     * 载荷（token值）
     */
    private String payload;

    public Token() {
        // 默认的鉴权框架：saToken
        this.framework = "saToken";
        this.sign = null;
        this.payload = null;
    }

    public Token(String framework, String sign, String payload) {
        this.framework = framework;
        this.sign = sign;
        this.payload = payload;
    }


}
